<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>随访记录详情</title>
	<%- include('../_global/baseLibsJKDA') %>

		<link rel="stylesheet" href="/static/css/jkda/page-main.css" />
		<!--<link rel="stylesheet" href="/static/css/public.css">-->
		<style type="text/css">
			html,
			body {
				width: 100%;
				height: 100%;
				margin: 0px;
			}

			.padding4 {
				padding: 0.41429rem;
			}
		</style>


		<script type="text/javascript">
			var page_sfjlDetail = (function ($, page_sfjlDetail) {

				var cfg_def = {
					indata: indata,
					callBack: callBack,
				}

				page_sfjlDetail.init = function (cfg) {
					$.extend(page_sfjlDetail, cfg_def, cfg);
					page_sfjlDetail.indata();

				}

				function indata() {
					var result = StoreCache.getCache("jkdaSfjlCache");
					page_sfjlDetail.callBack(result);
				}

				function callBack(result) {
					var trs = [];
					var results = result.split("^^");
					if (results[1] == "gxy") {
						var ywzys = results[0].split("%|%");
						var sfjls = ywzys[1].split("}|{");
						$(sfjls).each(function () {
							var sfjls = this.split("^|^");
							var sfrq = sfjls[0];
							var sffs = sfjls[1];
							var mqzz = sfjls[2];
							var sfy = sfjls[3];
							var szy = sfjls[4];
							var bfz = sfjls[5];

							var tr1 = $("<tr>");
							tr1.attr("class", "row");
							var td1 = $("<td>");
							td1.attr("class", "col-xs-3 padding4");
							var str;
							var date;
							if (StringUtils.isEmpty(sfrq)) {
								str = sfrq;
							} else {
								date = new Date(sfrq.replace(/(\d{4})(\d{2})(\d{2})/g, '$1-$2-$3'));
								str = date.Format("yyyy-MM-dd");
							}
							td1.html(str);
							td1.appendTo(tr1);
							var td2 = $("<td>");
							td2.attr("class", "col-xs-3 padding4");
							td2.attr("style", "word-break:break-all;");
							td2.html(sffs);
							td2.appendTo(tr1);
							var td3 = $("<td>");
							td3.attr("class", "col-xs-3 padding4");
							td3.attr("style", "word-break:break-all;");
							td3.html("收缩压:" + sfy + "<br/>舒张压:" + szy + "<br/>并发症:" + bfz);
							td3.appendTo(tr1);
							var td4 = $("<td>");
							td4.attr("class", "col-xs-3 padding4");
							td4.attr("style", "word-break:break-all;");
							td4.html(mqzz);
							td4.appendTo(tr1);
							trs.push(tr1);
						});

					} else if (results[1] == "tnb") {
						var ywzys = results[0].split("%|%");
						var sfjls = ywzys[1].split("}|{");
						$(sfjls).each(function () {
							var sfjls = this.split("^|^");
							var sfrq = sfjls[0];
							var sffs = sfjls[1];
							var kfxt = sfjls[2];
							var sjxt = sfjls[3];
							var ntl = sfjls[4];
							var chlxsxt = sfjls[5];
							var lczz = sfjls[6];

							var tr1 = $("<tr>");
							tr1.attr("class", "row");
							var td1 = $("<td>");
							td1.attr("class", "col-xs-3 padding4");
							var str;
							var date;
							if (StringUtils.isEmpty(sfrq)) {
								str = sfrq;
							} else {
								date = new Date(sfrq.replace(/(\d{4})(\d{2})(\d{2})/g, '$1-$2-$3'));
								str = date.Format("yyyy-MM-dd");
							}
							td1.html(str);
							//td1.html(sfrq);
							td1.appendTo(tr1);
							var td2 = $("<td>");
							td2.attr("class", "col-xs-3 padding4");
							td2.attr("style", "word-break:break-all;");
							td2.html(sffs);
							td2.appendTo(tr1);
							var td3 = $("<td>");
							td3.attr("class", "col-xs-3 padding4");
							td3.attr("style", "word-break:break-all;");
							td3.html("空腹血糖:" + kfxt + "<br/>随机血糖:" + sjxt + "<br/>耐糖量:" + ntl + "<br/>餐后2小时血糖:" + chlxsxt);
							td3.appendTo(tr1);
							var td4 = $("<td>");
							td4.attr("class", "col-xs-3 padding4");
							td4.attr("style", "word-break:break-all;");
							td4.html(lczz);
							td4.appendTo(tr1);
							trs.push(tr1);
						});

					}
					$("#detailTable").append(trs);
				}

				return page_sfjlDetail;
				
			})(jQuery, {});
		</script>
</head>

<body>
	<section class="page-inspect-detail">
		<!--aside class="inspect-detail-title">
       <span class="time">2010-01-31</span><span class="hospital">市中心医院</span><span class="name">任柳奎</span>
   </aside-->
		<table class="table-list" style="width:100%">
			<tr class="row">
				<td class="col-xs-3 padding4">随访日期</td>
				<td class="col-xs-3 padding4">随访方式</td>
				<td class="col-xs-3 padding4">患者信息</td>
				<td class="col-xs-3 padding4">症状</td>
			</tr>
			<tbody id="detailTable">

			</tbody>
		</table>
	</section>

</body>

</html>